import { http } from "@/services/http";
import type { ResponseData } from "@/types";

export const createProductInfo = (data:any) => {
    return http.post<ResponseData>('/product/info',data);
};

export const getMyProductList = () => {
    return http.get<ResponseData>('/product/info/my');
};

export const getCollectProduct= () => {
    return http.get<ResponseData>('/product/info/my/collect');
};

export const getProductInfo = (id:string) => {
    return http.get<ResponseData>('/product/info/detail',{id:id});
};